package com.bookManagerment.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Data
@PropertySource("classpath:system.properties")
@Component("bmProperties")
public class BMSystemProperties {

    @Value("${readerLogin.autoLoginDay}")
    private Integer readerAutoLoginDay;

    @Value("${readerLogin.autoCookieName}")
    private String autoCookieName;

    @Value("${readerLogin.sessionName}")
    private String readerSessionName;

    @Value("${manager.sessionName}")
    private String managerSessionName;

    @Value("${reader.cookiePath}")
    private String cookiePath;

    @Value("${reader.register.emailVerifyCodeMinute}")
    private Integer emailVerifyCodeMinute;

    @Value("${mail.host}")
    private String mailHost;

    @Value("${mail.account}")
    private String mailAccount;

    @Value("${mail.password}")
    private String mailPassword;

    @Value("${mail.content}")
    private String mailContent;

    @Value("${mail.reader.register.title}")
    private String emailReaderRegisterTitle;

    @Value("${mail.reader.register.contentModel}")
    private String mailReaderRegisterContentModel;

    @Value("${mail.reader.remind.title}")
    private String mailReaderRemindTitle;

    @Value("${order.ZFBTimeoutExpress}")
    private Integer OrderZFBTimeoutExpress;

    @Value("${order.ZFBTimeoutExpressAddTime}")
    private Integer ZFBTimeoutExpressAddTime;

    @Value("${borrowBooksAccountLest}")
    private Integer borrowBooksAccountLest;

    @Value("${maxBorrowBooksDay}")
    private Integer maxBorrowBooksDay;


    public Integer getReaderAutoLoginDay() {
        return readerAutoLoginDay;
    }

    public void setReaderAutoLoginDay(Integer readerAutoLoginDay) {
        this.readerAutoLoginDay = readerAutoLoginDay;
    }

    public String getAutoCookieName() {
        return autoCookieName;
    }

    public void setAutoCookieName(String autoCookieName) {
        this.autoCookieName = autoCookieName;
    }

    public String getReaderSessionName() {
        return readerSessionName;
    }

    public void setReaderSessionName(String readerSessionName) {
        this.readerSessionName = readerSessionName;
    }

    public String getManagerSessionName() {
        return managerSessionName;
    }

    public void setManagerSessionName(String managerSessionName) {
        this.managerSessionName = managerSessionName;
    }

    public String getCookiePath() {
        return cookiePath;
    }

    public void setCookiePath(String cookiePath) {
        this.cookiePath = cookiePath;
    }

    public Integer getEmailVerifyCodeMinute() {
        return emailVerifyCodeMinute;
    }

    public void setEmailVerifyCodeMinute(Integer emailVerifyCodeMinute) {
        this.emailVerifyCodeMinute = emailVerifyCodeMinute;
    }

    public String getMailHost() {
        return mailHost;
    }

    public void setMailHost(String mailHost) {
        this.mailHost = mailHost;
    }

    public String getMailAccount() {
        return mailAccount;
    }

    public void setMailAccount(String mailAccount) {
        this.mailAccount = mailAccount;
    }

    public String getMailPassword() {
        return mailPassword;
    }

    public void setMailPassword(String mailPassword) {
        this.mailPassword = mailPassword;
    }

    public String getMailContent() {
        return mailContent;
    }

    public void setMailContent(String mailContent) {
        this.mailContent = mailContent;
    }

    public String getEmailReaderRegisterTitle() {
        return emailReaderRegisterTitle;
    }

    public void setEmailReaderRegisterTitle(String emailReaderRegisterTitle) {
        this.emailReaderRegisterTitle = emailReaderRegisterTitle;
    }

    public String getMailReaderRegisterContentModel() {
        return mailReaderRegisterContentModel;
    }

    public void setMailReaderRegisterContentModel(String mailReaderRegisterContentModel) {
        this.mailReaderRegisterContentModel = mailReaderRegisterContentModel;
    }

    public String getMailReaderRemindTitle() {
        return mailReaderRemindTitle;
    }

    public void setMailReaderRemindTitle(String mailReaderRemindTitle) {
        this.mailReaderRemindTitle = mailReaderRemindTitle;
    }

    public Integer getOrderZFBTimeoutExpress() {
        return OrderZFBTimeoutExpress;
    }

    public void setOrderZFBTimeoutExpress(Integer orderZFBTimeoutExpress) {
        OrderZFBTimeoutExpress = orderZFBTimeoutExpress;
    }

    public Integer getZFBTimeoutExpressAddTime() {
        return ZFBTimeoutExpressAddTime;
    }

    public void setZFBTimeoutExpressAddTime(Integer ZFBTimeoutExpressAddTime) {
        this.ZFBTimeoutExpressAddTime = ZFBTimeoutExpressAddTime;
    }

    public Integer getBorrowBooksAccountLest() {
        return borrowBooksAccountLest;
    }

    public void setBorrowBooksAccountLest(Integer borrowBooksAccountLest) {
        this.borrowBooksAccountLest = borrowBooksAccountLest;
    }

    public Integer getMaxBorrowBooksDay() {
        return maxBorrowBooksDay;
    }

    public void setMaxBorrowBooksDay(Integer maxBorrowBooksDay) {
        this.maxBorrowBooksDay = maxBorrowBooksDay;
    }
}
